package com.amigo;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

public class About extends Activity {
	ImageView iv;
	TextView App_Name, Version, CopyRights, ReservesRights;
	String versionName;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_info);
		iv = (ImageView) findViewById(R.id.logo);
		App_Name = (TextView) findViewById(R.id.app_name);
		Version = (TextView) findViewById(R.id.version);
		CopyRights = (TextView) findViewById(R.id.copyright);
		ReservesRights = (TextView) findViewById(R.id.reserved_right);

		try {
			versionName = getPackageManager().getPackageInfo(getPackageName(),
					0).versionName;
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Version.setText("Version " + versionName);
	}
	
	public void prev(View v )
	{
		startActivity(new Intent(this , Dashboard.class));
		overridePendingTransition(android.R.anim.slide_in_left , android.R.anim.slide_out_right);
		finish();
	}
	@Override
	public void onBackPressed() {
	
	}
}
